package com.hopscotch.entity;

import lombok.Data;

@Data
public class UserGetDTO {
    private String username;
    private String phone;
    private String createTimeStart;
    private String createTimeEnd;
    /*private Integer pageNum;
    private Integer pageSize;*/
    public UserGetDTO(UserGetVO userGetVO){
        this.username = userGetVO.getUsername();
        this.phone = userGetVO.getPhone();
        if (userGetVO.getCreateTime().size() == 2 && userGetVO.getCreateTime().get(1) != null && userGetVO.getCreateTime().get(0) != null){
            this.createTimeStart = userGetVO.getCreateTime().get(0);
            this.createTimeEnd = userGetVO.getCreateTime().get(1);
        }
        /*this.pageNum = userGetVO.getPageNum();
        this.pageSize = userGetVO.getPageSize();*/
    }
}
